package lee;

public class Ss {
    public static void main(String[] args) {
        String path =  "http://localhost:8088/myweb/reg?name=zhangsan&pwd=123456&nick=san&age=16";
        String[] arr = path.split("\\?");
        System.out.println("地址:"+arr[0]);
        System.out.println("参数:"+arr[1]);
        arr = arr[1].split("&");
        for (String s : arr) {
            String[] c = s.split("=");
            System.out.println("参数名:"+c[0]+"参数值:"+c[1]);
        }
    }
}